<!--
  描述：后端产品分类-故障图片table页
  @author yangshuangping
  @since 2021/11/18 18:37
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{field:'faultId',type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>

        <th lay-data="{field:'faultId', unresize:true, align:'center'}">ID</th>
        <th lay-data="{field:'partType', unresize:true, align:'center'}">部位类型</th>
        <th lay-data="{field:'partName', unresize:true, align:'center'}">部位名称</th>
        <th lay-data="{field:'coord', unresize:true, align:'center'}">序号坐标</th>
        <th lay-data="{field:'defaultImg', unresize:true, align:'center'}">默认图片</th>
        <th lay-data="{field:'faultImg', unresize:true, align:'center'}">故障图片</th>
        <th lay-data="{field:'faultCoord', unresize:true, align:'center'}">故障坐标</th>
        <th lay-data="{field:'faultRelevance', unresize:true, align:'center'}">关联故障</th>
        <th lay-data="{field:'操作', width:140, unresize:true, align:'center', fixed:'right'}">操作</th>

    </tr>
    </thead>
    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td th:text="${item.faultId}">faultId</td>
        <td th:text="${item.partTypeName}">partTypeName</td>
        <td th:text="${item.partName}">partName</td>
        <td th:text="${item.coord}">coord</td>
        <td>
            <div th:if="${item.defaultImg != '' and item.defaultImg != null}">
                <img style="color: #00a0e9" width="50px" height="50px" th:id="${'defaultImg_'+item.faultId}"
                     th:onclick="previewImg([[${'defaultImg_'+item.faultId}]])" th:src="${item.defaultImg}">
            </div>
        </td>
        <td>
            <div th:if="${item.faultImg != '' and item.faultImg != null}">
                <img style="color: #00a0e9" width="50px" height="50px" th:id="${'faultImg_'+item.faultId}"
                     th:onclick="previewImg([[${'faultImg_'+item.faultId}]])" th:src="${item.faultImg}">
            </div>
        </td>
        <td th:text="${item.faultCoord}">faultCoord</td>
        <td th:text="${item.faultRelevance}">faultRelevance</td>
        <td>
            <div>
                <a style="color: #00a0e9"
                   th:onclick="|toAddFaultImage([[${vo.groupId}]],[[${item.faultId}]])|"
                   href="#"
                   lay-text="修改" text="修改">修改</a>&nbsp;&nbsp;
            </div>
        </td>
    </tr>
    </tbody>
</table>
